<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CLcg Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CLcg Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CLcg" --><!-- doxytag: inherits="IPrng" -->
<p><code>#include &lt;<a class="el" href="lcg_8h_source.html">lcg.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CLcg:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classCLcg.png" usemap="#CLcg_map" alt=""/>
  <map id="CLcg_map" name="CLcg_map">
<area href="classIPrng.html" alt="IPrng" shape="rect" coords="0,0,42,24"/>
</map>
 </div></div>

<p><a href="classCLcg-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a902c69b7dfd3baf4fa0a99d7cee04c05">CLcg</a> (int16_t pSeed=<a class="el" href="classCLcg.html#a42af412cadd2742304b96f3d6bbd0500">sDefaultSeed</a>, int16_t pMultiplier=<a class="el" href="classCLcg.html#aa4cb90fe9885e941136e5512fa8848b3">sDefaultMultiplier</a>, int16_t pIncrement=<a class="el" href="classCLcg.html#a34b5e51f4cf1d76ceeeda64e50e88771">sDefaultIncrement</a>, int16_t pModulo=<a class="el" href="classCLcg.html#a01310d87d833f60de8ffacf3db3bc881">sDefaultModulo</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a86cbed8cad62b0ce1194add1ba147c06">~CLcg</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a3d0d9cba0dcd6692337cf30139729298">getRand</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#aba57a019826333dea2bb61f4034fe746">mSeed</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#aee4868aca2b5d4da589fe1f179507db4">mMultiplier</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a70208e9539b5142a639b8ad21290a08f">mIncrement</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a412334c16d603d4473b448e7aa784a5d">mModulo</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a42af412cadd2742304b96f3d6bbd0500">sDefaultSeed</a> = 1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#aa4cb90fe9885e941136e5512fa8848b3">sDefaultMultiplier</a> = 7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a34b5e51f4cf1d76ceeeda64e50e88771">sDefaultIncrement</a> = 5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCLcg.html#a01310d87d833f60de8ffacf3db3bc881">sDefaultModulo</a> = 29</td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a902c69b7dfd3baf4fa0a99d7cee04c05"></a><!-- doxytag: member="CLcg::CLcg" ref="a902c69b7dfd3baf4fa0a99d7cee04c05" args="(int16_t pSeed=sDefaultSeed, int16_t pMultiplier=sDefaultMultiplier, int16_t pIncrement=sDefaultIncrement, int16_t pModulo=sDefaultModulo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CLcg::CLcg </td>
          <td>(</td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>pSeed</em> = <code><a class="el" href="classCLcg.html#a42af412cadd2742304b96f3d6bbd0500">sDefaultSeed</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>pMultiplier</em> = <code><a class="el" href="classCLcg.html#aa4cb90fe9885e941136e5512fa8848b3">sDefaultMultiplier</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>pIncrement</em> = <code><a class="el" href="classCLcg.html#a34b5e51f4cf1d76ceeeda64e50e88771">sDefaultIncrement</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>pModulo</em> = <code><a class="el" href="classCLcg.html#a01310d87d833f60de8ffacf3db3bc881">sDefaultModulo</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Linear congruential generator </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pSeed</td><td>starting value </td></tr>
    <tr><td class="paramname">pMultiplier</td><td></td></tr>
    <tr><td class="paramname">pIncrement</td><td></td></tr>
    <tr><td class="paramname">pModulo</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a86cbed8cad62b0ce1194add1ba147c06"></a><!-- doxytag: member="CLcg::~CLcg" ref="a86cbed8cad62b0ce1194add1ba147c06" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual CLcg::~CLcg </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3d0d9cba0dcd6692337cf30139729298"></a><!-- doxytag: member="CLcg::getRand" ref="a3d0d9cba0dcd6692337cf30139729298" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t CLcg::getRand </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>calculates random number </p>

<p>Reimplemented from <a class="el" href="classIPrng.html#add8903347745c2743d4fc0f35976e848">IPrng</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a70208e9539b5142a639b8ad21290a08f"></a><!-- doxytag: member="CLcg::mIncrement" ref="a70208e9539b5142a639b8ad21290a08f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t <a class="el" href="classCLcg.html#a70208e9539b5142a639b8ad21290a08f">CLcg::mIncrement</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#a1f48722ff7b20ff4138a86914ee15787">IPrng</a>.</p>

</div>
</div>
<a class="anchor" id="a412334c16d603d4473b448e7aa784a5d"></a><!-- doxytag: member="CLcg::mModulo" ref="a412334c16d603d4473b448e7aa784a5d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t <a class="el" href="classCLcg.html#a412334c16d603d4473b448e7aa784a5d">CLcg::mModulo</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#a22d33dc8259f76b5788545bdd85985e9">IPrng</a>.</p>

</div>
</div>
<a class="anchor" id="aee4868aca2b5d4da589fe1f179507db4"></a><!-- doxytag: member="CLcg::mMultiplier" ref="aee4868aca2b5d4da589fe1f179507db4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t <a class="el" href="classCLcg.html#aee4868aca2b5d4da589fe1f179507db4">CLcg::mMultiplier</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#af6eb18c3792432a8f90040d9c44ad038">IPrng</a>.</p>

</div>
</div>
<a class="anchor" id="aba57a019826333dea2bb61f4034fe746"></a><!-- doxytag: member="CLcg::mSeed" ref="aba57a019826333dea2bb61f4034fe746" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t <a class="el" href="classCLcg.html#aba57a019826333dea2bb61f4034fe746">CLcg::mSeed</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#a55421680c6ee7acbee1c985d52b1d423">IPrng</a>.</p>

</div>
</div>
<a class="anchor" id="a34b5e51f4cf1d76ceeeda64e50e88771"></a><!-- doxytag: member="CLcg::sDefaultIncrement" ref="a34b5e51f4cf1d76ceeeda64e50e88771" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int16_t <a class="el" href="classCLcg.html#a34b5e51f4cf1d76ceeeda64e50e88771">CLcg::sDefaultIncrement</a> = 5<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#afee971a69deef2efdac6174407749104">IPrng</a>.</p>

</div>
</div>
<a class="anchor" id="a01310d87d833f60de8ffacf3db3bc881"></a><!-- doxytag: member="CLcg::sDefaultModulo" ref="a01310d87d833f60de8ffacf3db3bc881" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int16_t <a class="el" href="classCLcg.html#a01310d87d833f60de8ffacf3db3bc881">CLcg::sDefaultModulo</a> = 29<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#a42786cf080952d0596dff3326456bbad">IPrng</a>.</p>

</div>
</div>
<a class="anchor" id="aa4cb90fe9885e941136e5512fa8848b3"></a><!-- doxytag: member="CLcg::sDefaultMultiplier" ref="aa4cb90fe9885e941136e5512fa8848b3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int16_t <a class="el" href="classCLcg.html#aa4cb90fe9885e941136e5512fa8848b3">CLcg::sDefaultMultiplier</a> = 7<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#a3324e6293815cc30f422d71e90dfefe8">IPrng</a>.</p>

</div>
</div>
<a class="anchor" id="a42af412cadd2742304b96f3d6bbd0500"></a><!-- doxytag: member="CLcg::sDefaultSeed" ref="a42af412cadd2742304b96f3d6bbd0500" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int16_t <a class="el" href="classCLcg.html#a42af412cadd2742304b96f3d6bbd0500">CLcg::sDefaultSeed</a> = 1<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classIPrng.html#a410f565ae23576124cde8732a4095fbe">IPrng</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="lcg_8h_source.html">lcg.h</a></li>
<li><a class="el" href="lcg_8cxx.html">lcg.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:43 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
